﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BlogDemo.Infrastructure.Migrations
{
    public partial class InitSeedData : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "Blog",
                columns: new[] { "Id", "Name", "Timestamp", "Url" },
                values: new object[] { 1, "My Blogs", null, "yourqq2009.qzone.qq.com" });

            migrationBuilder.InsertData(
                table: "Tag",
                columns: new[] { "Id", "Name" },
                values: new object[] { 1, "asp.net" });

            migrationBuilder.InsertData(
                table: "Tag",
                columns: new[] { "Id", "Name" },
                values: new object[] { 2, "javascript" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 1, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7076), null, "A Title 1" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 2, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7094), null, "A Title 2" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 3, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7094), null, "A Title 3" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 4, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7099), null, "A Title 4" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 5, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7099), null, "A Title 5" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 6, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7103), null, "A Title 6" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 7, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7107), null, "A Title 7" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 8, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7219), null, "A Title 8" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 9, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7223), null, "A Title 9" });

            migrationBuilder.InsertData(
                table: "Posts",
                columns: new[] { "Id", "Author", "BlogId", "Body", "CreateAt", "Remark", "Title" },
                values: new object[] { 10, "未知", 1, "BlogDbContext:HasData：Extensions", new DateTime(2022, 8, 2, 7, 8, 51, 824, DateTimeKind.Local).AddTicks(7227), null, "A Title 10" });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 1, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 1, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 2, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 2, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 3, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 3, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 4, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 4, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 5, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 5, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 6, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 6, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 7, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 7, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 8, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 8, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 9, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 9, 2 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 10, 1 });

            migrationBuilder.InsertData(
                table: "PostTag",
                columns: new[] { "PostId", "TagId" },
                values: new object[] { 10, 2 });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 1, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 1, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 2, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 2, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 3, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 3, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 4, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 4, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 5, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 5, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 6, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 6, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 7, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 7, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 8, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 8, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 9, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 9, 2 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 10, 1 });

            migrationBuilder.DeleteData(
                table: "PostTag",
                keyColumns: new[] { "PostId", "TagId" },
                keyValues: new object[] { 10, 2 });

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 1);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 2);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 3);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 4);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 5);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 6);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 7);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 8);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 9);

            migrationBuilder.DeleteData(
                table: "Posts",
                keyColumn: "Id",
                keyValue: 10);

            migrationBuilder.DeleteData(
                table: "Tag",
                keyColumn: "Id",
                keyValue: 1);

            migrationBuilder.DeleteData(
                table: "Tag",
                keyColumn: "Id",
                keyValue: 2);

            migrationBuilder.DeleteData(
                table: "Blog",
                keyColumn: "Id",
                keyValue: 1);
        }
    }
}
